define([
    'dojo/_base/declare',
    'esri/geometry/Point',
    'geomap/plugins/layers/AnimationLayer',
], function (declare, Point, AnimationLayer) {
    var animationLayer = declare([AnimationLayer], {
        setData: function (mapView, layer) {
            var me = this;
            var options = layer.layer || {};
            me.data = $.extend(true, [], options.data);

            me.options = Object.assign({ size: 10, radius: 1 }, options.options);
            me.options.minScale = options.minScale || 0;
            me.options.maxScale = options.maxScale || 0;
            me.devicePixelRatio = 1;
            me.mapv = options.options.mapv;
            me.style = options.style;
            me.init();
        },
    });
    return animationLayer;
});
